* lisp/replace.el (read-regexp-defaults-function): New defcustom.
authorJuri Linkov <juri@jurta.org>
Fri, 20 Dec 2013 19:55:56 +0000 (21:55 +0200)
committerJuri Linkov <juri@jurta.org>
Fri, 20 Dec 2013 19:55:56 +0000 (21:55 +0200)
commit0b0cb4559b4e8eb4deca9ceab6a6449aa768f3a6
treebc5a205255727bd6bdb0150e8c98e696968370cb
parent7b5ba399d62ac1c9c50f289682ed1f6800af47dc
* lisp/replace.el (read-regexp-defaults-function): New defcustom.
(read-regexp-suggestions): New function.
(read-regexp): Use `read-regexp-defaults-function' to get default values.
Use `read-regexp-suggestions'.  Add non-empty default to history
for empty input.
(occur-read-regexp-defaults-function): Remove function.
(occur-read-primary-args): Use `regexp-history-last' instead of
`occur-read-regexp-defaults-function'.

* lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
`hi-lock-read-regexp-defaults-function'.  Doc fix.
(hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
with `find-tag-default-as-symbol-regexp'.  Doc fix.
(hi-lock-read-regexp-defaults): Remove function.
(hi-lock-regexp-okay): Add check for null.

* lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.

* lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
(find-tag-default-as-regexp): Move symbol regexp formatting to
`find-tag-default-as-symbol-regexp'.
etc/NEWS
lisp/ChangeLog
lisp/hi-lock.el
lisp/progmodes/grep.el
lisp/replace.el
lisp/subr.el